/* 全局样式 */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  height: 100vh;
  width: 100vw;
  overflow: hidden;
  color: #333;
  font-family: 'Helvetica Neue', Helvetica, 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', SimSun, sans-serif;
}

/* 美化滚动条 */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 3px;
}

::-webkit-scrollbar-thumb {
  background: #ccc;
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: #aaa;
}

/* Element Plus 样式覆盖 */
.el-card {
  --el-card-padding: 15px;
  border-radius: 8px;
  box-shadow: 0 2px 12px 0 rgba(0, 0, 0, 0.05) !important;
  transition: all 0.3s;
}

.el-card:hover {
  box-shadow: 0 4px 20px 0 rgba(0, 0, 0, 0.08) !important;
}

.el-table {
  --el-table-header-bg-color: #f5f7fa;
  --el-table-border-color: #ebeef5;
  --el-table-row-hover-bg-color: #f5f7fa;
}

.el-table th {
  font-weight: 600;
  color: #606266;
}

.el-pagination {
  margin-top: 15px;
  justify-content: flex-end;
}

.el-tag {
  border-radius: 4px;
}

.el-button {
  border-radius: 4px;
  transition: all 0.3s;
}

.el-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* 统计卡片美化 */
.stat-card {
  transition: all 0.3s;
  border-radius: 8px;
  overflow: hidden;
}

.stat-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1) !important;
}

.stat-icon {
  border-radius: 12px !important;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* 响应式布局调整 */
@media screen and (max-width: 768px) {
  .el-table {
    width: 100%;
    overflow-x: auto;
  }

  .el-form-item {
    margin-bottom: 10px;
  }
}

/* 提高Card内的表格显示 */
.el-card .el-table {
  margin-top: 15px;
}
